//371.两整数之和
class Solution {
    public int getSum(int a, int b) {
        while(b != 0){
            int x = a ^ b;//先算出无进位相加的结果
            int carry = (a & b) << 1;//计算进位
            a = x;
            b = carry;
        }
        return a;
    }
}